package router

import (
	"river-guard/handler"

	"github.com/gin-gonic/gin"
)

func Init() *gin.Engine {
	r := gin.Default()

	r.POST("/login", handler.UserLogin)
	r.GET("/list", handler.List)
	return r
}
